package com.guigu.service.impl.design;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.mapper.design.DGradeMapper;
import com.guigu.pojo.design.DGrade;
import com.guigu.service.design.DGradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mr.Zhang
 * @since 2024-12-17
 */
@Service
public class DGradeServiceImpl extends ServiceImpl<DGradeMapper, DGrade> implements DGradeService {

    @Autowired
    private DGradeMapper dGradeMapper;

    @Override
    public ArrayList<DGrade> selectAllGrade() {
        ArrayList<DGrade> dGrades = (ArrayList<DGrade>) dGradeMapper.selectList(null);
        return dGrades;
    }
}
